<?php
namespace app\index\controller;
use think\Controller;
use think\Db;
use think\Request;

class Culture extends Controller{
    public function index(){
        $culture=Db::name('culture')->select();
        $this->assign('culture',$culture);

        $value=Db::name('value')
            ->alias('a')
            ->join('attachment','a.thumb=attachment.id')
            -> select();
        $this->assign('value',$value);

        $company=Db::name('company')
            ->alias('a')
            ->join('attachment','a.thumb=attachment.id')
            -> select();
        $this->assign('company',$company);

        $talents=Db::name('talents')
            ->alias('a')
            ->join('attachment','a.thumb=attachment.id')
            ->select();
        $this->assign('talents',$talents);
        return view();
    }

}